From: Fabian Grünbichler Date: Wed, 23 Jul 2025 19:36:46 +0000 (+0200) Subject: cargo: do not force liblzma-sys static linking X-Git-Tag: archive/raspbian/1.92.0+dfsg1-2+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ab320af04ae4d73a48a4eea15691b427d348655b;p=rustc.git cargo: do not force liblzma-sys static linking Forwarded: not-needed Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic vendor Gbp-Pq: Name cargo-do-not-force-liblzma-sys-static-linking.patch --- diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs index 79df9d3a49..39c77ac021 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs @@ -224,10 +224,6 @@ pub fn prepare_tool_cargo( // avoid rebuilding when running tests. cargo.env("SYSROOT", builder.sysroot(compiler)); - // if tools are using lzma we want to force the build script to build its - // own copy - cargo.env("LZMA_API_STATIC", "1"); - // Note that `miri` always uses jemalloc. As such, there is no checking of the jemalloc build flag. // See also the "JEMALLOC_SYS_WITH_LG_PAGE" setting in the compile build step. if env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none() {